#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.trigger.http.mapstruct.response;

import ${package}.api.model.response.UserRes;
import ${package}.domain.user.model.entity.UserEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserResConvert {
    UserResConvert INSTANCE = Mappers.getMapper(UserResConvert.class);

    @Mappings(
            @Mapping(target = "gender", expression = "java(${package}.domain.user.model.valobj.GenderEnum.getCode(userEntity.getGender()))")
    )
    UserRes convertUserEntityToUserReq(UserEntity userEntity);
}
